<?php
namespace Hive\Contact\Import\Format;
/**
 * Format Fields Mapping
 *
 * It represant a column in the source file format, and its relationship
 * with the Hive data model
 *
 * @author Xavier VILAIN
 * @package Hive\Contact\Import\Format
 *
 * @property int	$format			Id of the format
 * @property int	$col_number		Column Number
 * @property string	$col_name		Source File Column name (for control only)
 * @property int	$datatype		Expected Data Type
 * @property int	$sequence		Collector Object Sequence
 * @property int	$reference		
 * @property bool	$active			Is an active type (can be selected)
 */
class Item  extends \Fox\Object {

	/**
	 * Reverse Link to Format
	 * @var string
	 */
	const LINK_FORMAT = 'format';
	
	/**
	 * 
	 * Return Colmun label
	 * @return string
	 */
	public function label() {
		return $this->col_name;
	}
}
\Fox\Dao::infos(
	Item::className(),
	new \Fox\Object\Info('contact_import_format_items', \Fox\Databases::DB_APP)
);